]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: avoid blinking user list when disable-user-list=true
authorRay Strode <rstrode@redhat.com>
Thu, 18 Jul 2013 14:13:32 +0000 (10:13 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 18 Jul 2013 17:08:31 +0000 (13:08 -0400)
Right now if disable-user-list is true we show it briefly, just so
that we can fade it out to the user entry.

This commit avoids the fade in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=704471

js/gdm/loginDialog.js

index 459ec39704522285d4aa53a0d956fab6127f3987..9b537f4173ad64d680b15a50613ee6af92471ebf 100644 (file)
@@ -449,7 +449,8 @@ const LoginDialog = new Lang.Class({
                                    Lang.bind(this, this._updateLogoTexture));
 
         this._userSelectionBox = new St.BoxLayout({ style_class: 'login-dialog-user-selection-box',
-                                                    vertical: true });
+                                                    vertical: true,
+                                                    visible: false });
         this._userSelectionBox.add_constraint(new Clutter.AlignConstraint({ source: this.actor,
                                                                             align_axis: Clutter.AlignAxis.BOTH,
                                                                             factor: 0.5 }));
@@ -1127,7 +1128,8 @@ const LoginDialog = new Lang.Class({
 
     _hideUserListAndLogIn: function() {
         this._setUserListExpanded(false);
-        GdmUtil.cloneAndFadeOutActor(this._userSelectionBox);
+        if (this._userSelectionBox.visible)
+            GdmUtil.cloneAndFadeOutActor(this._userSelectionBox);
         this._askForUsernameAndLogIn();
     },